package com.ruoyi.merchant.utils;

import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Date;

public class OrderNumberGenerator {

    public static long generateOrderNumber() {
        long timestamp = Instant.now().toEpochMilli() % 10000000000L; // 获取当前时间的毫秒部分
        return timestamp;
    }
}